package com.lanyam.travel.base.entity;


import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonProperty;


@Data
public class DistrRecord {

    /*
     * 主键
     */
    @JsonProperty(value="id")
    private String id;

    /*
     * 订单主键
     */
    @JsonProperty(value="orderId")
    private String orderId;

    /*
     * 用户id
     */
    @JsonProperty(value="userId")
    private String userId;

    /*
     * 分销用户id
     */
    @JsonProperty(value="distUserId")
    private String distUserId;

    /*
     * 本次分佣
     */
    @JsonProperty(value="amount")
    private BigDecimal amount;

    /*
     * 历史余额
     */
    @JsonProperty(value="oldAmount")
    private BigDecimal oldAmount;

    /*
     * 新的余额
     */
    @JsonProperty(value="newAmount")
    private BigDecimal newAmount;

    /*
     * 分佣规则
     */
    @JsonProperty(value="ratio")
    private String ratio;

    /*
     * 创建日期
     */
    @JsonProperty(value="createTime")
    private Date createTime;

    //查询
	/**
	 * 用户名
	 */
	@TableField("user_name")
	private String userName;
	/**
	 * 订单数量
	 */
	@TableField("order_count")
	private Integer orderCount;
	/**
	 * 分销层级
	 */
	@TableField("dislevel")
	private Integer dislevel;
	/**
	 * 订单总金额
	 */
	@TableField("order_amount")
	private BigDecimal orderAmount;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	public Integer getDislevel() {
		return dislevel;
	}

	public void setDislevel(Integer dislevel) {
		this.dislevel = dislevel;
	}

	public BigDecimal getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDistUserId() {
		return distUserId;
	}

	public void setDistUserId(String distUserId) {
		this.distUserId = distUserId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getOldAmount() {
		return oldAmount;
	}

	public void setOldAmount(BigDecimal oldAmount) {
		this.oldAmount = oldAmount;
	}

	public BigDecimal getNewAmount() {
		return newAmount;
	}

	public void setNewAmount(BigDecimal newAmount) {
		this.newAmount = newAmount;
	}

	public String getRatio() {
		return ratio;
	}

	public void setRatio(String ratio) {
		this.ratio = ratio;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}